package midiPlayer;
import java.io.File;
/**
 * 
 */
public class SequenceItem
{
    File file;

    public SequenceItem(File file)
    {
        this.file = file;
    }
    
    /**
     * @return Returns the file.
     */
    public File getFile()
    {
        return file;
    }
    /**
     * @param file The file to set.
     */
    public void setFile(File file)
    {
        this.file = file;
    }
    
    /**
     * Get return the name of the File
     */
    public String toString()
    {
        return file.getName();
    }
    
    /**
     * Compare de object if is an instance of SequenceItem
     */
    
    public boolean equals(Object o)
    {
        if(!(o instanceof SequenceItem))
            return false;
        return ((SequenceItem)o).getFile().equals(file);
    }
}
